<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="tr09" uri="http://www.51i-star.com/news" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>我的订单</title>
	<link href="tp/favico.ico" rel="shortcut icon" />
	<link href="css/m_member.css" rel="stylesheet" type="text/css"/>
	<script type="text/javascript"src="js/jquery-3.1.0.js"></script>
	<script type="text/javascript">
	function dd(id){
		var x=confirm("您确定要删除此订单吗？");
		if(x==true){
			$.get("DdeleteidServlet", {id: id,}, function(){
				 alert("订单删除成功！");
				 location.reload();//刷新页面
			 });	
		}
	}
	</script>
	<style type="text/css">
	.pager{
		text-align: right;
		padding: 10px;
		background: white;
		font-size:12px;
	}
	
	.pager a{
		text-decoration: none;
		color: gray;
	}
	
	.pager span{
		font-size: 12px;
		color: gray;
	}
	.t3 td{
		text-align: center;
	}
	
	th,td{
		padding: 8px;
		border: none;
		border-bottom: 1px solid #CCC;
	}
	
	th{
		color: gray;
		border:1px #CCC solid;
		background: #f3f3f3;
		font-size:12px;
		border-radius: 4px;
	}
	
	td{
		border-bottom: 1px dashed #CCC;
		border-left: 1px dashed #CCC;
		font-size: 12px;
		background: white;
		text-align: center;
	}
	</style>
</head>

<body>
	<div class="m4">
	<div class="m5">
	<h5 class="m7">
		<span>我的订单</span>
	</h5>
	<div class="m1"></div>
	<table width="98%" border="0" cellpadding="5" cellspacing="1"
		bgcolor="#dddddd" >
		<tr align="center">
			<th bgcolor="#ffffff">订单号</th>
			<th bgcolor="#ffffff">下单时间</th>
			<th bgcolor="#ffffff">收货人</th>
			<th bgcolor="#ffffff">订单总金额</th>
			<th bgcolor="#ffffff">订单状态</th>
			<th bgcolor="#ffffff">收货地址</th>
			<th bgcolor="#ffffff">收货人电话</th>
			<th bgcolor="#ffffff">操作</th>
		</tr>
		<c:forEach items="${order}" var="c">
			<tr>
				<td>${c.orderId}</td>
				<td>${c.orderTime}</td>
				<td>${c.orderReceipt}</td>
				<td>${c.orderMoney}</td>
				<td>${c.orderState}</td>
				<td>${c.orderAddress}</td>
				<td>${c.ordePhone}</td>
				<td><a onclick="dd(${c.orderId})" Style="cursor: pointer;">删除</a></td>
			</tr>
		</c:forEach>
	</table>
	<div class="m1"></div>


		<div class="pager">
		<tr09:pager url="OrderQuery" pagesize="5" 
			total="${total}" curpage="${param.curpage}"/>
			</div>
	</div>


	
</div>
</body>
</html>